package com.wenhai.spring.dependency.injection;

import com.wenhai.xiaomage.spring.ioc.overview.dependency.domain.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 演示 proxyBeanMethods 作用
 *
 * @author wenhai
 * @date   2021/4/15
 */
public class ConfigurationProxyBeanMethodDemo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(ConfigurationProxyBeanMethod.class);
        context.refresh();
        context.getBean("user1",User.class);
        context.getBean("user1",User.class);

        context.close();
    }

}
